home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / inn1.000 / inn1.4sec-linux-src.tar / inn / lib / makellib.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1991-11-27  |  603b  |  33 lines

  1. #! /bin/sh
  2. ##  $Revision: 1.2 $
  3. ##
  4. ##  Make a lint library for INN.  Usage:
  5. ##    makellib <style> "<lintflags>" <sourcefile...>
  6. case $# in
  7. [012])
  8.     echo "Can't make INN lint library:  wrong number of arguments." 1>&2
  9.     exit 1
  10.     ;;
  11. esac
  12.  
  13. STYLE="$1"
  14. FLAGS="$2"
  15. shift
  16. shift
  17.  
  18. ##  Note the lack of quotes around ${FLAGS}, below.
  19. case "X${STYLE}" in
  20. XBSD)
  21.     exec lint ${FLAGS} -u -Cinn $* >/dev/null
  22.     ;;
  23. XSYSV)
  24.     exec lint ${FLAGS} -u -v -x -o inn $* >/dev/null
  25.     ;;
  26. XNONE)
  27.     exec cp /dev/null llib-linn.ln
  28.     ;;
  29. esac
  30.  
  31. echo "Can't make INN lint library:  unknown method ${STYLE}." 1>&2
  32. exit 1
  33.